package com.eshin.service2;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Service;

@Service
@EnableAsync
public class OrderService2 {
    
    /**
     * logger
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(OrderService2
            .class);
    
    @Async/*("logExcutor")*/
    public void doService(String todo) {
    	System.out.println(this.toString());
        LOGGER.info("todo OrderService2{}", todo);
        LOGGER.warn("todo warn OrderService2{}", todo);
        LOGGER.error("todo error OrderService2{}", todo);
    }
}
